]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Synchronize panel opacity with overview leave animation
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 16 Feb 2021 23:57:13 +0000 (00:57 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 17 Feb 2021 13:06:11 +0000 (14:06 +0100)
Gestures leaving the overview from a short distance result in an
ugly effect with the panel opacity transitionhaving a fixed duration.
Make this transition have the same duration (although in a hackish
way) so we avoid the ugly effect.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1643>

js/ui/overview.js

index 6fbc39b4e131ec01ae09814406df9d5363840674..3f881da57ffef60e4e6911687eda19389229b7c4 100644 (file)
@@ -397,6 +397,7 @@ var Overview = class {
         if (endProgress === 0) {
             this._shown = false;
             this.emit('hiding');
+            Main.panel.style = 'transition-duration: %dms;'.format(duration);
             onComplete = () => this._hideDone();
         } else {
             onComplete = () => this._showDone();
@@ -626,6 +627,8 @@ var Overview = class {
         else
             Main.layoutManager.hideOverview();
 
+        Main.panel.style = null;
+
         this._syncGrab();
     }